/*
 * KeyboardEvent.h
 *
 *  Created on: 2013-9-1
 *  Author: xnan
 */

#ifndef XNL_KEYBOARDEVENT_CLASS_H_
#define XNL_KEYBOARDEVENT_CLASS_H_

#include "Event.h"

NS_XNL_BEGIN

class KeyboardEvent : public Event {
public:
    KeyboardEvent( IEventDispatcher * p_target, XNint p_eventType, XNint p_key );
    virtual ~KeyboardEvent();
    
public:
    static const XNint KEY_EVENT_UP = 1;
    static const XNint KEY_EVENT_DOWN = 2;
    
    // 键值
    static const XNint KEY_F1;
    static const XNint KEY_F2;
    static const XNint KEY_F3;
    static const XNint KEY_F4;
    static const XNint KEY_F5;
    static const XNint KEY_F6;
    static const XNint KEY_F7;
    static const XNint KEY_F8;
    static const XNint KEY_F9;
    static const XNint KEY_F10;
    static const XNint KEY_F11;
    static const XNint KEY_F12;
    // 还有其他的...
    
protected:
    XNint m_key;
};

NS_XNL_END

#endif /* XNL_KEYBOARDEVENT_CLASS_H_ */
